
#pragma once
#include "mzfc_ui.h"

#define RECEIVER_ITEM_H_ARCH	10

class MZFC_API UiReceiverItem :	public UiWin
{
public:
	UiReceiverItem(void);

	virtual ~UiReceiverItem(void);	

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	
	void SetAddress(LPCTSTR addr){m_Address = addr;}

	void SetContactOid(CEOID oid){m_ContactOid = oid;}	

	LPCTSTR GetAddress(){return m_Address.c_str();}

	CEOID GetContactOid(){return m_ContactOid;}	

	virtual int OnChar(TCHAR chCharCode, LPARAM lKeyData);

	void OnFocusd();

	void OnLostFocus();

	void CalWidth();

	int GetWinWidth(){return m_nWinWidth;}
	void SetMaxWidth(int n){m_nMaxWidth;}

private:	
	std::wstring m_Address;
	CEOID m_ContactOid;

	int m_nWinWidth;
	int m_nMaxWidth;

	static ImagingHelper m_ihSelectedItem;
};
